/******************************************************************
 *
 *    Java Lib For JavaWeb, Powered By Shenzhen WEI YI KE JI .
 *
 *    Copyright (c) 2017-2027 Digital Telemedia Co.,Ltd
 *    http://www.d-telemedia.com/
 *
 *    Package:     com.theyeasy.dvmini.service
 *
 *    Filename:    ProjectService.java
 *
 *    Description: TODO(鐢ㄤ竴鍙ヨ瘽鎻忚堪璇ユ枃浠跺仛浠�涔�)
 *
 *    Copyright:   Copyright (c) 2017-2027
 *
 *    Company:     Theyeasy Telemedia Co.,Ltd
 *
 *    @author:     hm
 *
 *    @version:    1.0.0
 *
 *    Create at:   2017骞�10鏈�22鏃� 涓嬪崍5:53:11
 *
 *    Revision:
 *
 *    2017骞�10鏈�22鏃� 涓嬪崍5:53:11
 *        - first revision
 *
 *****************************************************************/
package com.theyeasy.dvmini.service;

import java.io.InputStream;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.theyeasy.dvmini.model.Sales;
import com.theyeasy.dvmini.util.PageResults;
import com.theyeasy.dvmini.vo.SalesReport_Vo;
import com.theyeasy.dvmini.vo.Sales_Vo;
import com.theyeasy.dvmini.vo.Vo_msg;

/**
 * @ClassName ProjectService
 * @Description TODO(杩欓噷鐢ㄤ竴鍙ヨ瘽鎻忚堪杩欎釜绫荤殑浣滅敤)
 * @author hm
 * @Date 2017骞�10鏈�22鏃� 涓嬪崍5:53:11
 * @version 1.0.0
 */
public interface SalesService {

    PageResults<Sales_Vo> getSalesList(Integer page,Integer pagesize,String keyword,Integer projectid,Boolean isvanker);
    
    String addSales(String name,String phone,Integer projectid,Boolean isValid,Boolean isVanker);
    
    String updateSales(Integer id,String name,String phone,Integer projectid,Boolean isValid,Boolean isVanker);
    
    String deleteSales(Integer id);
    
    Sales getSales(Integer id);
    
    public String ExcelSales(String suffix, InputStream file);

	Sales updateSalesOpenId(String phone, String openId);
	
	Sales getSaleByMiniOpenId(String miniOpenid);
	
    Vo_msg updateSalesOpenId(String phone, String openId,String wxMiniCode);
    
    /**
     * 获取万小二的数据
     * @return
     */
    List<Sales> getVankers();
    
    //判断是否已绑定销售
    String CheckBinding(String miniopenid);
    
    //销售报表
    PageResults<SalesReport_Vo> getSalesReportList(int page,String keyword);
    
    /**把一个粉丝从一个销售转移到另一个销售*/
   
    void transferSales2Sales(int salesId,int newSalesId,int fansId);

    /** 发送小卡片信息*/
    String sendProudct(Integer projectid, Integer fansId);
}
